/* 基础样式 */
:root {
  --primary-color: #4a7bff;
  --primary-color-light: #6691ff;
  --primary-color-dark: #3a6be9;
  --secondary-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --border-color: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --card-border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease-in-out;
  cursor: pointer;
}

.btn:focus, .btn:hover {
  text-decoration: none;
  outline: none;
}

.btn-primary {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

.btn-secondary {
  color: #212529;
  background-color: var(--secondary-color);
  border-color: #dae0e5;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

.btn-success {
  color: white;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover, .btn-success:focus {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 头部样式 */
header {
  text-align: center;
  padding: 2rem 0;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

header p {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--dark-color);
}

.card-body {
  padding: 1.5rem;
}

/* 部分样式 */
.section {
  margin-bottom: 2rem;
}

/* 上传区域样式 */
.drop-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  background-color: var(--secondary-color);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.drop-area:hover, .drop-area.active {
  border-color: var(--primary-color);
  background-color: rgba(74, 123, 255, 0.05);
}

.upload-content, .preview-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.drop-area .drop-icon {
  margin-bottom: 1rem;
}

.drop-area .drop-icon svg {
  fill: var(--primary-color);
}

.drop-area p {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.drop-area .hint {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* 预览区域样式 */
.preview-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preview-container img {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.info-container {
  text-align: center;
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.preview-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 平台选择样式 */
.settings-group {
  margin-bottom: 2rem;
}

.settings-group h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.platforms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.platform-item {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
}

.platform-item:hover {
  border-color: var(--primary-color);
  background-color: rgba(74, 123, 255, 0.05);
}

.platform-item.selected {
  border-color: var(--primary-color);
  background-color: rgba(74, 123, 255, 0.1);
}

.platform-item input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.platform-item label {
  cursor: pointer;
  font-weight: 500;
}

/* 选项样式 */
.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
}

.option-item input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.option-item label {
  cursor: pointer;
  color: var(--dark-color);
}

/* 按钮容器 */
.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 结果部分样式 */
.result-tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  gap: 0.5rem;
}

.result-tab {
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.result-tab:hover {
  background-color: rgba(74, 123, 255, 0.1);
}

.result-tab.active {
  background-color: var(--primary-color);
  color: white;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-info {
  text-align: center;
}

.icon-name {
  font-size: 0.8rem;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.icon-size {
  font-size: 0.75rem;
  color: var(--gray-color);
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: var(--gray-color);
}

.result-placeholder svg {
  fill: var(--border-color);
  margin-bottom: 1rem;
}

/* 下载部分样式 */
.download-section {
  margin-top: 2rem;
  text-align: center;
}

/* 标签导航样式 */
.tab-nav {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.tab-btn.active {
  background-color: rgba(74, 123, 255, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

/* 通知样式 */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  max-width: 400px;
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  padding: 12px 20px;
  color: white;
  border-radius: var(--border-radius);
}

.notification-info .notification-content {
  background-color: var(--info-color);
}

.notification-success .notification-content {
  background-color: var(--success-color);
}

.notification-error .notification-content {
  background-color: var(--danger-color);
}

.notification-warning .notification-content {
  background-color: var(--warning-color);
  color: #333;
}

/* 下载信息相关样式 */
.download-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.platform-list {
  margin-bottom: 20px;
}

.platform-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.platform-list li {
  padding: 6px 12px;
  background-color: #4285f4;
  color: white;
  border-radius: 4px;
  font-weight: 500;
}

.download-hint {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.download-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.download-section .btn-success {
  font-size: 18px;
  padding: 12px 24px;
} 